def div_10(num):
    s = '无结果'
    try:
        s = 10 / num
        return s
    except Exception as e:
        print('发生计算错误：', e)
        return('出现异常！')
    finally:
        print('finally执行结束！！！')

if __name__ == "__main__":
    x = int(input('10 / ?'))
    print(div_10(x))

# finally运行甚至先于（return, break）等跳转语句。